<script lang="ts" setup>
import { getCode } from "@/api";
const code = ref("");
const { email } = <{ email: string }>inject("email");
const send = () => {
  getCode({
    email,
  });
};
</script>
<template>
  <div>
    <el-input v-model="code" placeholder="请输入验证码" />
    <button @click="send">点击发送验证码</button>
    {{ email }}
  </div>
</template>
